home *** CD-ROM | disk | FTP | other *** search
/ Aminet 8 / Aminet 8 (1995)(GTI - Schatztruhe)[!][Oct 1995].iso / Aminet / dev / amos / AMOS_0795.lzh / AMOSLIST / 000121_amos-request@svcs1.digex.net_Sun Jul 23 20:02:49 1995.msg < prev    next >
Internet Message Format  |  1995-08-04  |  3KB

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224]) by mail1.access.digex.net (8.6.12/8.6.12) with ESMTP id UAA24333;  for  ; Sun, 23 Jul 1995 20:02:45 -0400
  2. Received: (from daemon@localhost) by svcs1.digex.net (8.6.12/8.6.12) id SAA08213 for amos-out; Sun, 23 Jul 1995 18:04:17 -0400
  3. Received: from mail1.access.digex.net (mail1.access.digex.net [205.197.247.2]) by svcs1.digex.net (8.6.12/8.6.12) with ESMTP id SAA08210 for <amos-list@svcs1.digex.net>; Sun, 23 Jul 1995 18:04:16 -0400
  4. Received: from mail.shlink.de (root@shn.com [194.64.6.2]) by mail1.access.digex.net (8.6.12/8.6.12) with SMTP id SAA18322;  for <amos-list@access.digex.net> ; Sun, 23 Jul 1995 18:04:12 -0400
  5. Received: from alcatraz.alcatraz.org by mail.shlink.de with bsmtp
  6.     (Smail3.1.29.1 #1) id m0sa9BF-000SYLC; Mon, 24 Jul 95 00:07 MET DST
  7. To: amos-list@access.digex.net
  8. Message-Id: <wEh2rMD261aez4@p22.sixpack.pfalz.org>
  9. From: chris@sixpack.pfalz.org (Chris Hodges)
  10. Path: alcatraz.org!sixpack.pfalz.de!chris
  11. Subject: Re: AMOS Pro Problem/Bug
  12. Date: Sun, 23 Jul 1995 09:00:11 +0200
  13. X-Mailer: MicroDot 1.10 [REGISTERED 000261] via Connectline-CLMSortin 2.20
  14. References: <3ulv40$jc6@scapa.cs.ualberta.ca>
  15. X-Gateway: ZCONNECT US shlink.shlink.de [UNIX/Connect v0.71]
  16. MIME-Version: 1.0
  17. Content-Type: text/plain; charset=ISO-8859-1
  18. Content-Transfer-Encoding: 8bit
  19. X-Z-VIA: 19950723225126W+1@alcatraz.org
  20. X-Z-VIA: 19950723200752W+1@sixpack.pfalz.de
  21. X-Z-TELEFON: V+49-89/8005856
  22. X-Z-POST: Kennedystrasse 8; D-82178 Puchheim; Germany
  23. Lines: 45
  24. Status: RO
  25. X-Status: 
  26.  
  27. lichtner@cs.ualberta.ca (Jonathan Lichtner) wrote on 20.07.1995 some
  28. text under the subject AMOS Pro Problem/Bug. I can't leave this
  29. uncommentated ;-)
  30.  
  31. JL>       if key state(t)
  32. JL>          if AI(t-84)=true
  33. JL>             ai(t-84)=false
  34. JL>          else
  35. JL>             ai(t-84)=true
  36. JL>              endif
  37. JL>       endif
  38.  
  39. Just a hint inbetween: Replace these BIG statements with
  40.  
  41. If Key State(T) Then AI(T-84)=-AI(T-84)-1
  42.  
  43. JL> The problem is that AI()(never "retains"
  44. JL> the value True.  The problem has something to do with
  45. JL> AMOS Pro not handling arrays correctly, since a simple
  46. JL> variable will work in this case.  I am very confused
  47. JL> however since I used many arrays to handle the non-AI
  48. JL> part of the game as well and that part still works.
  49.  
  50. I'm not quite sure if this is really the problem... Pressing the
  51. desired key will 'flicker' the AI-array variable between 0 and -1.
  52. Now if you compile the program, the flickering might become so fast,
  53. that you don't notice the changing (?)
  54.  
  55. To prove your theory, simply add a Print AI(T-84) line within the
  56. For-Next loop you specified in your mail. I hope this could help to
  57. find out the actual problem. If not, try other variable names or
  58. array sizes (and indexes).
  59.  
  60. Bye, Chris Hodges <chris@sixpack.pfalz.org>      __   __
  61. A4000/40/5MB/400HD/CD; AMOS Extension-Coder __  ///  / / _____
  62. GCS d H s-:++ !g p? !au a18 w++ v? C+++     \\\///  / /_/ ___/ LOGOUT
  63. E---- N++ K- W------ -po+ t++@ !5 j-- R+ G?  \XX/   \__/ __/  FASCISM!
  64. tv- b+ D-- B? e+(++)* u++ h! f !r n+ !y+ AMIGA RULEZ!  \/
  65.  
  66. Blitterlees (pl.n.)
  67.   The little slivers of bamboo picked off a cane chair by a nervous
  68.   guest which litter the carpet beneath and tell the chair's owner
  69.   that the whole piece of furniture is about to uncoil terribly and
  70.   slowly until it resembles a giant pencil sharpening.
  71. (from: "The Deeper Meaning of Liff")
  72.